import { IntersectionType, PartialType, PickType } from '@nestjs/swagger';
import { Message } from '../entities/message.entity';
import { PaginationReqDto } from '@/types/globalDto.dto';

export class AdminMessagePageReqDto extends PartialType(
  IntersectionType(PickType(Message, ['messageId']), PaginationReqDto),
) {}

export class AdminMessagePageResDto {
  /**
   * 总数
   */
  total: number;

  /**
   * 列表
   */
  list: Message[];
}
